<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="/main.xhtml">
	
	<ui:define name="conteudo">
		<h:panelGroup rendered="#{cadastrarUsuario.clienteLogado}">
			<h:form>
				<h:outputText value="Reserva de Quartos:" />
				<hr />
				
				<br/>
				<br/>
				<br/>
				<h:outputText value="Escolha o tipo do quarto:" />

				<br />

				<h:selectOneRadio value="#{reservarAction.reserva.tipoQuarto}">
					<f:selectItem itemLabel="Quarto Simples" itemValue="QUARTO_SIMPLES" />
					<f:selectItem itemLabel="Quarto Duplo" itemValue="QUARTO_DUPLO" />
					<f:selectItem itemLabel="Quarto Triplo" itemValue="QUARTO_TRIPLO" />
				</h:selectOneRadio>

				<br />

				<h:outputText value="Entrada:" />
				<h:inputText value="#{reservarAction.reserva.dataEntrada}">
		           <f:convertDateTime pattern="dd/MM/yyyy"/>
		        </h:inputText>	
		        
		        <br/>

				<h:outputText value="Saida:" />
				<h:inputText value="#{reservarAction.reserva.dataSaida}">
		            <f:convertDateTime pattern="dd/MM/yyyy"/>
		        </h:inputText>	

				<br />
				<br />

				<h:commandButton action="#{reservarAction.cadastrarReserva}"
					value="Realizar Reserva" id="botaoCadastrar" />
			</h:form>
		</h:panelGroup>
	</ui:define>
</ui:composition>